#pragma once

#include "Figure.h"

class Nod:public Figure
{
public:
    Nod(CPoint centerPoint  = CPoint(0,0), int raza = 25);
    Nod(const CRect& rect);
	virtual ~Nod(void);

	int Name();
	void Name(const int valoare);

	void Draw( CDC* pDC);

	bool HasPoint( const CPoint& point);

    bool IntersectWith(const CRect& rect);

    bool HasPointOnBorder(const CPoint& point);

    void UpdateSize(const CPoint& point, const CRect& rect);

    inline float GetRadiusFromCentre(const CPoint& point);


public:
    float radius;
private:
	int name;

};

